package com.example.chatgpt;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class InputApiKeyActivity extends AppCompatActivity {

    private EditText et_api_key;
    private SharedPreferences sharedPreferences;
    private TextView textview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_input_api_key);

        //获取sharedPreference对象
        sharedPreferences = getSharedPreferences("api-key", Context.MODE_PRIVATE);
        //下次加载此页面时自动获取上次输入的apikey

    }
}